<?php
/*
 * Author: Quan Van Sinh
 * Email: sinhquan@vietnambiz.com
 */

checkLoginHeader();
checkPermission();
//categoryAction();
$question = new question();
$answer = $question->editAnswer(intval($_GET['id']));
?>

<div>
    <div>
        Answer: <p style="padding: 10px 20px;"><?php echo $answer['answer']; ?></p>
    </div>
    <div>
        Sender: <?php echo $answer['fullname']; ?>
    </div>
    <div>
        Email: <?php echo $answer['email']; ?>
    </div>
    <div>
        Like: <?php echo $answer['thumb_up']; ?>
    </div>
    <div>
        Create date: <?php echo $answer['create_date']; ?>
    </div>
    <div>
        Active: <?php echo $answer['active'] == 1 ? 'Yes' : 'No'; ?>
    </div>
</div>